from Base import message, intersect, SS_VALID
from DRG import MDCD_DRG

def group(record):
  adrg_zd = []
  adrg_zd1 = []
  adrg_ss = ["26.4900x007","26.4900x009","26.4900x010","26.4900x011","86.700x0013","86.7400x034","86.7400x035","86.7400x036","86.7400x037","86.7400x038","86.7400x042","86.7406"]
  adrg_ss1 = []
  dept_list = []

  if True and record.ssList and record.ssList[0] in adrg_ss:
    message('符合DC1入组条件，匹配规则：主手术匹配')

    if MDCD_DRG.DC19_group(record):
      return 'DC19'
        
    return 'DC1'
  else:
    return ''
    
